package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.util.Map;

public interface OrderService {
    OrderSubmitVO orderSubmit(OrdersSubmitDTO submitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult getByConditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO Statistics();

    OrderVO getOrdersDetailsById(Long id);

    void ConfirmOrders(OrdersConfirmDTO ordersConfirmDTO);

    void RejectionOrders(OrdersRejectionDTO ordersRejectionDTO) throws Exception ;

    void CancelOrders(OrdersCancelDTO ordersCancelDTO) throws Exception;

    void DeliveryOrders(Long id);

    void CompleteOrders(Long id);

    PageResult HistoryOrders(Integer page,Integer pageSize,Integer status);

    OrderVO orderDetail(Long id);

    void CancelOrder(Long id) throws Exception;

    void RepetitionOrder(Long id);

    Orders getById(Long currentId);

    void ReminderOrder(Long id);
}
